package com.wfuhui.modules.hospital.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.wfuhui.modules.hospital.dao.DrugDao;
import com.wfuhui.modules.hospital.entity.DrugEntity;
import com.wfuhui.modules.hospital.service.DrugService;



@Service("drugService")
public class DrugServiceImpl implements DrugService {
	@Autowired
	private DrugDao drugDao;
	
	@Override
	public DrugEntity queryObject(Integer id){
		return drugDao.queryObject(id);
	}
	
	@Override
	public List<DrugEntity> queryList(Map<String, Object> map){
		return drugDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return drugDao.queryTotal(map);
	}
	
	@Override
	public void save(DrugEntity drug){
		drugDao.save(drug);
	}
	
	@Override
	public void update(DrugEntity drug){
		drugDao.update(drug);
	}
	
	@Override
	public void delete(Integer id){
		drugDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		drugDao.deleteBatch(ids);
	}
	
}
